package mvc.model.jpa;

import static javax.persistence.GenerationType.TABLE;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@NamedQueries
({
	@NamedQuery(name = "allSub", query="select s from ESub s"),
	@NamedQuery(name = "countSub", query="select Count(s) from ESub s"),
	@NamedQuery(name = "delSub", query="select Count(s) from ESub s")	
})
@Entity
public class ESub implements Serializable {
	private static final long serialVersionUID = 1L;
	private int id;
	private String de;
	private String gender;
	private Date lins;
	private String plural;
	private int rating;
	private String ro;

	public ESub() {
	}

	@Id
	@GeneratedValue(strategy = TABLE)
  public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDe() {
		return this.de;
	}

	public void setDe(String de) {
		this.de = de;
	}


	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Temporal( TemporalType.DATE)
	public Date getLins() {
		return this.lins;
	}

	public void setLins(Date lins) {
		this.lins = lins;
	}

	public String getPlural() {
		return this.plural;
	}

	public void setPlural(String plural) {
		this.plural = plural;
	}

	public int getRating() {
		return this.rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public String getRo() {
		return this.ro;
	}

	public void setRo(String ro) {
		this.ro = ro;
	}

}